<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="./css/vinces.css">
<title>Create Experiment</title>
</head>
<body>

<f:view>
	<h:graphicImage
		value="http://www.ib.usp.br/vinces/images/logo_vinces_a1.gif" />
	<f:facet name="header">
		<h:outputText value="Novo Experimento" />
	</f:facet>
	<h:form id="formulario">
		<h:panelGrid columns="2">
			<h:outputLabel value="Titulo:" />
			<h:inputText id="title"
				value="#{experimentHandler.experiment.dataSetMetadata.title}" />

			<h:outputLabel value="Inicio:" />
			<a4j:outputPanel id="startCalendar" layout="block">
				<rich:calendar 
					value="#{experimentHandler.startDate}"/>
			</a4j:outputPanel>

			<h:outputLabel value="Termino:" />
			<a4j:outputPanel id="endCalendar" layout="block">
				<rich:calendar
					value="#{experimentHandler.endDate}" />
			</a4j:outputPanel>

			<h:outputLabel value="Variaveis:" />
			<h:selectManyCheckbox id="variables" layout="pageDirection" value="#{experimentHandler.variables}">
				<f:selectItems value="#{experimentHandler.variables}" />
			</h:selectManyCheckbox>
		</h:panelGrid>
		<h:commandButton value="Enviar"
			action="#{experimentHandler.submitExperiment}" />
		<h:messages />
	</h:form>
</f:view>
</body>
</html>